|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
march 2013 docid024106 rev 1 1/13 AN4227 application note audio hub demonstration kit supporting the mp45dt02, mp34db01, and mp34dt01 microphones introduction this document provides a brief description of the audio hub demonstration board steval- mki138v1 available from www.st.com along with simple steps to use the board with the apworkbench software tool. the purpose of this board is twofold: 1. it can be used as an stsmartvoice interface . in combination with this board (steval-mki126vx), it manages the signal coming from the onboard microphones. the stsmartvoice board hosts up to six microphones and the sta321mpl microphone processor converts the pdm signals from them into the common i 2 s audio format. (for additional details, please refe r to an4146 ?stsmartvoice demonstration board steval-mki126vx? available from www.st.com ). basically the audio hub, using the stm32f107rc microcontroller, is able to program the sta321mpl device via the i 2 c and decodes the i 2 s into a usb stream in order fo r the pc to manage the sound captured by the microphones. multiple f eatures for using the microphones on the stsmartvoice demonstration board are listed and accessible thanks to the apworkbench software tool. 2. it can be used as a usb sound card . as shown in figure 1 , the audio hub board hosts either the mp45dt02 or mp34dt01 (top-port digital microphones) and the mp34db01 which is a bottom-port digital microphone. the board is able to host both types of microphones as shown below. the task of th e stm32 microcontroller is to decode the pdm signals coming from the microphon es and stream the audio via the usb. figure 1. steval-mki138v1 entire board (top and bottom views) microphone section (zoom) mp45dt02 mp34dt01 mp34db01 www.st.com
contents AN4227 2/13 docid024106 rev 1 contents 1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 software description (getting started wi th apworkbench) . . . . . . . . . . 6 2.1 stsmartvoice interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 usb voice recorder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 appendix a schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 appendix b layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 docid024106 rev 1 3/13 AN4227 hardware description 1 hardware description the connection is done through a usb cable th at supplies the board and also streams the audio collected by the microphones to the pc. figure 2. block diagram - microphone usb demonstration board referring to figure 2 : ? the supply section of the board is made up of one voltage regulator that steps down the 5 v of the usb connection to 3.3 v. the supply voltage ranges of the digital microphones are given below in table 1 . ? regarding the microphone sections, the mems outputs are a pdm signal, which is a high-frequency (1 to 3.25 mhz) stream of 1-bit digital samples. the ?functionality? section of each microphone datasheet (available on www.st.com ) provides details concerning the connections of the microphone in single channel configuration or stereo configuration by setting the lr pin. this pin sets the validity of the output data on the high level of the clock or on the low level as shown in table 2 . table 1. supply voltage range of microphones part number min. typ. max. mp45dt02 1.64 1.8 3.6 mp34db01 1.64 1.8 3.6 mp34dt01 1.64 1.8 3.6 table 2. l/r channel selection l/r clock low clock high gnd data valid high impedance vdd high impedance data valid sda scl lrck bick sdo12 sdo34 sdo56 stm32f107rc 12.288 mhz sel l/r clk vdd out gnd i2s spi i2c usb i/f l/r clk vdd out gnd sel regulator 3.3v 5v mic_vdd c_vdd usb connector 3.3v osc mic_vdd j1 j5 spi_ck st audio hub timer mic_ck mic_ck mic_data12 mic_vdd d1 d2 d3 d4 d5 mic_vdd mic_vdd c_vdd 12.288 mhz mclk sel mc o hardware description AN4227 4/13 docid024106 rev 1 in this board the microphones are used in stereo configuration, so the two digital outputs are shorted (mic_data12, refer to schematic) and the two mems lr pins must be respectively set one to gnd and the other one to vdd. on the board, the resistors r1 and r13 already set the lr pin of the microphones, r1 and r42 give the user the poss ibility to change the mems polarity. note that the pcb sections hosting the mems microphones are detachable. this option has been considered to let the us er put the microphones in the desired position (i.e. for a display application in which the microphones are placed at the edges of the display). ? the hardware relative to the stm32f107rc microcontroller has been chosen to support both modes of usage listed above (either stsmartvoice interface or usb sound card). the board hosts two clock devices, the first one is a crystal quartz at 12.288 mhz and the other one is an active os cillator at 12.288 mhz as well. the first one, connected to the osc_in and osc_out pins, serves to gen erate the entire internal clock of the microcontroller (stm32 clock tree). once th e clock tree has been set, all the internal peripherals of the microcontroller have their own clocks. if the st audio hub is used as the stsmar tvoice interface, the internal clock tree provides the clock for the usb, for the i 2 c cell, for the i 2 s cell and also provides the clock for the daughterboard through the mco pin (12.288 mhz as well). the microcontroller is used to program the sta321mpl via i 2 c and also is used to decode the i 2 s coming from the daughterboard and to stream the audio via the usb. for this reason dedicated stm32 pins are connected to the connecto r physically interfacing the stsmartvoice board. an additional clock device (active oscillator) has been mounted for debugging purposes only. in the default configuration, the selector composed of r42, r21, and r17 is set to connect the mclk trace to the mco pin (refer to the schematic). if the st audio hub is used as a usb sound card, the clock tree is used to provide the mic_ck and spi_ck thanks to internal timers and a dedicated loop trace on the board (short between pin 21 and pin 27). the stm32 samples the output data of the microphones using the synchronous seri al port (spi1). the microphone signal mic_data12 is a stereophonic signal and the spi must be able to sample both channels. since mic_data12 is synchronous with its clock, spi_ck must be doubled. summarizing, the timer generates: ? mic_ck = 3.072 mhz ? spi_ck = 6.144 mhz the supported microcontroller usb interfac e allows streaming the audio on the usb peripheral, rendering this demonstration board compatible with any laptop or desktop. docid024106 rev 1 5/13 AN4227 hardware description ? some leds have been mounted on the board, thus allowing a real-time check of what the demonstration board is performing. leds d1 and d5 give feedback about the supply and successful enumeration while the pu rpose of d2, d3 and d4 is to check the status of the board. d2 and d3 will alternat ely blink while the stm32 is in dfu mode (before the dedicated firmware has been corr ectly loaded into the flash memory of the microcontroller). checking the pc ?device manager? , the stm device in dfu mode will appear (see figure 3 below). figure 3. device manager when stm32 is in dfu mode the audio hub boards are provided by st with the firmware already loaded; the dfu section has been included to allow a firmware update by the user with no need for flash loader kits and is directly supported by the apw orkbench tool. the status of leds d1-d5 is summarized in the table below. table 3. led status d1 d2 d3 d4 d5 on: usb enumeration successful blinking: dfu mode off: firmware correctly downloaded blinking: dfu mode off: firmware correctly downloaded off: firmware correctly downloaded on: board supplied software description (getting started with apworkbench) AN4227 6/13 docid024106 rev 1 2 software description (getting started with apworkbench) the firmware of the st audio hub supports two different audio frameworks. in the first case the board can be used as the interface for the stsmartvoice, allowing the i 2 c programming and the decoding of the i 2 s coming from the daughterboard. when the board is used for this purpose, it will be recognized as "staudiohub interface" (a) . the other possibility is the use of the board essentially as a pdm decoder that allows the couple of microphones on the board to be interfac ed directly to the pc via the u sb in which case the board will be recognized by the operative system as "stm32 capture pdm mode". the apworkbench tool allows choosing one of these modes by following these simple steps: 1. run the tool 2. click on the "mems microph ones demo kit" button 3. select the mode in the "microphone kit selection" box 4. click on the "run sele cted applicat ion?" button 2.1 stsmartvoice interface if the user wants to operate the board as the stsmartvoice interface, the corresponding mode must be selected as shown in figure 4 . figure 4. apworkbench launch wizard (stsmartvoice demonstration kit) a. apworkbench is compatible with wi ndows xp, windows vista and windows 7. docid024106 rev 1 7/13 AN4227 software description (getting started with apworkbench) after this selection, the setup wizard panel of the stsmartvoice supported configurations will appear. for a detailed description of the meaning of the config urations listed in figure 5 , please refer to an4146 "stsmartvoice demons tration board steval-mki126vx" available on www.st.com . figure 5. stsmartvoice - setup wizard software description (getting started with apworkbench) AN4227 8/13 docid024106 rev 1 2.2 usb voice recorder if the user wants to operate the board as a usb voice recorder, the proper mode must be selected as depicted in figure 6 . figure 6. apworkbench launch wiza rd (usb digital voice recorder) once this selection has been run, a dedicated panel will appear. if the user wants to operate the board as a usb voice recorder, the tool shows the panel performing either fft or scope monitoring. it is also possibl e to record the signal sensed by the microphones on the board. figure 7. usb voice recorder - fft monitoring AN4227 schematics docid024106 rev 1 9/13 appendix a schematics figure 8. board schematic (power supply and jtag connector) AN4227 schematics docid024106 rev 1 10/13 figure 9. board schematic (stm32 microcontroller, mangus ta option, clock generators, connectors, and microphones) docid024106 rev 1 11/13 AN4227 layout appendix b layout figure 10. board layout - top view figure 11. board layout - bottom view revision history AN4227 12/13 docid024106 rev 1 3 revision history table 4. document revision history date revision changes 22-mar-2013 1 initial release. docid024106 rev 1 13/13 AN4227 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. st products are not authorized for use in weapons. nor are st products designed or authorized for use in: (a) safety critical applications such as life supporting, active implanted devices or systems with product functional safety requirements; (b) aeronautic applications; (c) automotive applications or environments, and/or (d) aerospace applications or environments. where st products are not designed for such use, the purchaser shall use products at purchaser?s sole risk, even if st has been informed in writing of such usage, unless a product is expressly designated by st as being intended for ?automotive, automotive safety or medical? industry domains according to st product design specifications. products formally escc, qml or jan qualified are deemed suitable for use in aerospace by the corresponding governmental agency. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2013 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com |
Price & Availability of AN4227 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |